package kr.saeildamil.androidstudty.ch13;

import kr.saeildamil.androidstudty.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class AutoComplete extends Activity {
	
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.ch13_autocomplete);
			
			ArrayAdapter<CharSequence> adWord;
			adWord = new ArrayAdapter<CharSequence>(this, R.array.words, android.R.layout.simple_dropdown_item_1line);
			AutoCompleteTextView autoEdit = (AutoCompleteTextView) findViewById(R.id.ch13_autocomplete_autoedit);
			autoEdit.setAdapter(adWord);
		}

	}
